//
//  UIView+ShadowPath.h
//  SYBaseProject
//
//  Created by apple on 2021/3/8.
//  Copyright © 2021 YYB. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, ShadowPathSide) {
    ShadowPathSide_Left,
    ShadowPathSide_Right,
    ShadowPathSide_Top,
    ShadowPathSide_Bottom,
    ShadowPathSide_NoTop,
    ShadowPathSide_AllSide
};
NS_ASSUME_NONNULL_BEGIN

@interface UIView (ShadowPath)

/*
 *
 * shadowOpacity 阴影透明度，默认0
 *
 * shadowRadius  阴影半径，默认3
 * cornerRadius 阴影的宽度，

 */
+ (void)addShadowToView:(UIView *)view
            withOpacity:(float)shadowOpacity
           shadowRadius:(CGFloat)shadowRadius
        andCornerRadius:(CGFloat)cornerRadius;
@end

NS_ASSUME_NONNULL_END
